package com.ruoyi.jksd.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jksd.mapper.XyRewardLogMapper;
import com.ruoyi.jksd.domain.XyRewardLog;
import com.ruoyi.jksd.service.IXyRewardLogService;

/**
 * 订单佣金Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-27
 */
@Service
public class XyRewardLogServiceImpl implements IXyRewardLogService 
{
    @Autowired
    private XyRewardLogMapper xyRewardLogMapper;

    /**
     * 查询订单佣金
     * 
     * @param id 订单佣金主键
     * @return 订单佣金
     */
    @Override
    public XyRewardLog selectXyRewardLogById(Long id)
    {
        return xyRewardLogMapper.selectXyRewardLogById(id);
    }

    /**
     * 查询订单佣金列表
     * 
     * @param xyRewardLog 订单佣金
     * @return 订单佣金
     */
    @Override
    public List<XyRewardLog> selectXyRewardLogList(XyRewardLog xyRewardLog)
    {
        return xyRewardLogMapper.selectXyRewardLogList(xyRewardLog);
    }

    /**
     * 新增订单佣金
     * 
     * @param xyRewardLog 订单佣金
     * @return 结果
     */
    @Override
    public int insertXyRewardLog(XyRewardLog xyRewardLog)
    {
        return xyRewardLogMapper.insertXyRewardLog(xyRewardLog);
    }

    /**
     * 修改订单佣金
     * 
     * @param xyRewardLog 订单佣金
     * @return 结果
     */
    @Override
    public int updateXyRewardLog(XyRewardLog xyRewardLog)
    {
        return xyRewardLogMapper.updateXyRewardLog(xyRewardLog);
    }

    /**
     * 批量删除订单佣金
     * 
     * @param ids 需要删除的订单佣金主键
     * @return 结果
     */
    @Override
    public int deleteXyRewardLogByIds(Long[] ids)
    {
        return xyRewardLogMapper.deleteXyRewardLogByIds(ids);
    }

    /**
     * 删除订单佣金信息
     * 
     * @param id 订单佣金主键
     * @return 结果
     */
    @Override
    public int deleteXyRewardLogById(Long id)
    {
        return xyRewardLogMapper.deleteXyRewardLogById(id);
    }
}
